.channel_chat_item{
    padding: 8px 16px;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    margin: 0 8px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    &:hover{
        background: var(--bg-tertiary);
        color: var(--text-primary);
    }
    .channel_chat_icon{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 14px;
        height: 14px;
        margin-right: 8px;
        font-size: 14px;
    }
    .channel_chat_item_delete{
        position: absolute;
        right: 8px;
        color: var(--text-tertiary);
        width: 16px;
        height: 16px;
        display: none;
        align-items: center;
        justify-content: center;
        span{
            margin: 0;
        }
        &:hover{
            color: var(--text-secondary);
        }
    }
    &:hover .channel_chat_item_delete{
        display: flex;
    }
}
.channel_chat_item_act{
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}
.channel_chat_disabled{
    color: var(--text-tertiary);
    cursor:text !important;
    &:hover{
        background-color: transparent;
        color: var(--text-tertiary);
    }
}
.channel_mgt{
    display: flex;
    min-height: 355px;
    width: 850px;
    max-width: 100%;
    padding: 16px;
    box-sizing: border-box;
    .channel_mgt_options{
        display: flex;
        flex-direction: column;
        gap: 6px;
        border-right: 2px solid #35373b;
        padding-right: 8px;
        width: 160px;
        .channel_mgt_options_item{
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 6px 16px;
            border-radius: 16px;
            cursor: pointer;
            &:hover{
                background: var(--bg-tertiary);
            }
        }
        .channel_mgt_options_item_act{
            background: var(--bg-tertiary);
            color: var(--primary);
        }
        .channel_mgt_del{
            position: relative;
            color: var(--danger);
            &:hover{
                background-color: rgba(237, 66, 69, 0.1);
            }
            &::before{
                content: '';
                position: absolute;
                top: -4px;
                height: 2px;
                width: 100%;
                background-color: #35373b;
            }
        }
    }
    .channel_mgt_setting{
        flex-grow: 1;
        padding: 0 0 0 20px;
        .channel_mgt_setting_header{
            padding-bottom: 10px;
            height: 40px;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--bg-tertiary);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 18px;
            line-height: 1.5;
            svg{
                width: 18px;
                height: 18px;
                color: var(--primary);
            }
        }
        .channel_mgt_setting_channel{
            .channel_mgt_setting_channel_body{
                display: grid;
                grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
                gap: 20px;
                .channel_mgt_channel_item{
                    margin-bottom: 15px;
                    label{
                        display: block;
                            margin-bottom: 8px;
                            font-weight: 500;
                            color: var(--text-secondary);
                            font-size: 14px;
                    }
                    .type_label{
                        display: inline-flex;
                        align-items: center;
                        padding: 6px 12px;
                        border-radius: 50px;
                        font-size: 13px;
                        font-weight: 500;
                    }
                    .type_text{
                        background: rgba(59, 165, 93, 0.2);
                        color: var(--success);
                    }
                    .type_voice{
                        background: rgba(88, 101, 242, 0.2);
                        color: var(--primary);
                    }
                    select{
                        width: 100%;
                        padding: 12px;
                        background: var(--bg-secondary);
                        border: 2px solid transparent;
                        border-radius: var(--border-radius);
                        outline: none;
                        font-size: 14px;
                        color: var(--text-primary);
                        transition: var(--transition);
                        &:active{
                            border: 2px solid var(--accent-primary);
                        }
                        &:focus{
                            border: 2px solid var(--accent-primary);
                        }
                    }
                }
                .channel_mgt_channel_item_action{
                    grid-column: 2;
                    display: flex;
                    justify-content: flex-end;
                    gap: 12px;
                    margin-top: 10px;
                }
            }

        }
        .channel_mgt_setting_permit{
            display: flex;
            flex-direction: column;
            .channel_mgt_setting_permit_body{
                .channel_mgt_permit_search{
                    border-radius: var(--border-radius);
                    margin-bottom: 20px;
                    position: relative;
                    display: flex;
                    align-items: center;
                    width: 100%;
                    input{
                        padding-left: 45px;
                    }
                    .icon{
                        position: absolute;
                        left: 20px;
                        z-index: 1000;
                    }
                }
                .channel_mgt_permit_members{
                    display: grid;
                    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
                    gap: 20px;
                    max-height: 320px;
                    overflow: scroll;
                    padding-right: 8px;
                    .channel_mgt_permit_item_card{
                        background: var(--bg-tertiary);
                        border-radius: var(--border-radius);
                        padding: 15px;
                        border: 1px solid var(--bg-secondary);
                        transition: var(--transition);
                        &:hover{
                            border-color: var(--primary);
                        }
                        .channel_mgt_permit_card_header{
                            display: flex;
                            align-items: center;
                            margin-bottom: 15px;
                            padding-bottom: 10px;
                            border-bottom: 1px solid var(--bg-secondary);
                            .channel_mgt_permit_card_avatar{
                                width: 45px;
                                height: 45px;
                                border-radius: 50%;
                                background: linear-gradient(135deg, var(--primary), var(--primary-dark));
                                display: flex;
                                align-items: center;
                                justify-content: center;
                                color: white;
                                font-weight: bold;
                                font-size: 18px;
                                margin-right: 12px;
                            }
                            .channel_mgt_permit_card_info{
                                .channel_mgt_permit_card_status{
                                    display: inline-block;
                                    padding: 3px 8px;
                                    border-radius: 50px;
                                    font-size: 11px;
                                    font-weight: 500;
                                    margin-left: 5px;
                                }
                                .member{
                                    background: rgba(59, 165, 93, 0.2);
                                    color: var(--success);
                                }
                                .admin{
                                    background: rgba(250, 168, 26, 0.2);
                                    color: var(--warning);
                                }
                                .owner{
                                    background: rgba(237, 66, 69, 0.2);
                                    color: var(--danger);
                                }
                            }
                        }
                        .channel_mgt_permit_item_options{
                            display: flex;
                            flex-direction: column;
                            gap: 12px;
                            .channel_mgt_permit_item_item{
                                display: flex;
                                justify-content: space-between;
                                align-items: center;
                                .channel_mgt_permit_item_label{
                                    font-size: 13px;
                                    color: var(--text-secondary)
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}